package api;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;

public class IteratorTests {
    public static void main(String[] args) {
        Collection c=new ArrayList();
        c.add(100);
        c.add("Hello Collection");
        Iterator iterator = c.iterator();
        while(iterator.hasNext()){
            Object obj=iterator.next();
            System.out.println(obj);
        }
    }
}
